package com.zjq.designpatterns.struct.decorator.code.v2;/*
 * 版权信息: 北京千⾥马网信科技有限公司</br>
 * Copyright ©2008-2018. All rights reserved. 京ICP备16007318号
 */

/**
 * @author jessie
 * @version 1.0
 * @date 2021/1/22
 */
public class EggDecorator extends AbstractDecorator{
    public EggDecorator(ABattercake aBattercake) {
        super(aBattercake);
    }

    @Override
    protected String getDescription() {
        return super.getDescription()+"加鸡蛋";
    }

    @Override
    protected int cost() {
        return super.cost()+1;
    }

    @Override
    protected void doSomething() {

    }
}
